﻿using MPKey = MessagePack.KeyAttribute;
using MPObj = MessagePack.MessagePackObjectAttribute;
using N_JsonProperty = Newtonsoft.Json.JsonPropertyAttribute;
using S_JsonProperty = System.Text.Json.Serialization.JsonPropertyNameAttribute;
namespace System.Application.Models
{
	[MPObj]
	public  class ScriptResponse
	{
		[MPKey(0)]
		[N_JsonProperty("0")]
		[S_JsonProperty("0")]
		public Guid Id { get; set; }

		/// <summary>
		/// 版本号
		/// </summary>
		[MPKey(1)]
		[N_JsonProperty("1")]
		[S_JsonProperty("1")]
		public string Version { get; set; } = string.Empty;

		/// <summary>
		/// 更新地址
		/// </summary>
		[MPKey(2)]
		[N_JsonProperty("2")]
		[S_JsonProperty("2")] 
		public string UpdateLink { get; set; } = string.Empty;


		/// <summary>
		/// 说明
		/// </summary>
		[MPKey(3)]
		[N_JsonProperty("3")]
		[S_JsonProperty("3")]
		public string? Description { get; set; } 
		/// <summary>
		/// 更新时间
		/// </summary>
		[MPKey(4)]
		[N_JsonProperty("4")]
		[S_JsonProperty("4")]
		public DateTimeOffset UpdateTime { get; set; }
	}
}
